package com.zhuiYun.project.api.newDaily.service;

import com.zhuiYun.project.api.newDaily.entity.UserIntegral;
import com.zhuiYun.project.api.newDaily.model.UserCouponModel;
import com.zhuiYun.project.common.response.CommonResult;

/**
 * @Description TODO 每日上新（小程序）
 * @ClassName NewDailyService
 * @Author HH
 * @Date 2023/4/5 14:14
 **/
public interface NewDailyService {

    /**
     * @Description 查询轮播图
     * @Author HH
     * @Date 2023/4/5 14:48
     * @Return com.zhuiYun.project.common.response.CommonResult

     */
    CommonResult selectSlideShow();

    /**
    * @Description 查询今日上新
    * @Author HH
    * @Date 2023/4/5 14:19
    * @Return com.zhuiYun.project.common.response.CommonResult

    */
    CommonResult selectCommodityNew();

    /**
    * @Description 查询拼团好货
    * @Author HH
    * @Date 2023/4/6 10:47
    * @Return com.zhuiYun.project.common.response.CommonResult

    */
    CommonResult selectCommodity();
    
    /**
    * @Description 根据用户id查询用户可用的优惠券
    * @Author HH
    * @Date 2023/4/6 21:25
    * @Return com.zhuiYun.project.common.response.CommonResult
    * @param userId
    */
    CommonResult selectUserCoupon(Integer userId);

    /**
     * @Description 添加用户优惠券
     * @Author HH
     * @Date 2023/4/7 9:53
     * @Return int
     * @param userCouponModel
     */
    CommonResult insertUserCoupon(UserCouponModel userCouponModel);

    /**
    * @Description 查询用户积分
    * @Author HH
    * @Date 2023/4/13 16:21
    * @Return com.zhuiYun.project.common.response.CommonResult
    * @param userId
    */
    CommonResult selectUserIntegral(Integer userId);

    /**
    * @Description 查询用户今天是否签到
    * @Author HH
    * @Date 2023/4/13 19:42
    * @Return com.zhuiYun.project.common.response.CommonResult
    * @param userId
    */
    CommonResult selectSignInState(Integer userId);

    /**
    * @Description 用户签到
    * @Author HH
    * @Date 2023/4/13 16:24
    * @Return com.zhuiYun.project.common.response.CommonResult
    * @param userIntegral
    */
    CommonResult signIn(UserIntegral userIntegral);
}
